import java.util.Scanner;
import java.util.Arrays;
public class Triangle {

    public static void main(String[] args) {
        double chang[] = new double[3];
        Scanner sc = new Scanner(System.in);
        int n = 0;
        boolean flag = true;
        while(flag){
            if(n > 0){
                System.out.println("是否继续：F-停止，T-继续");
                String str = sc.next();
                if("F".equals(str)){
                    System.out.println("--------结束--------");
                    break;
                }else  if(!"T".equals(str)){

                    System.out.println("输入错误");
                    continue;
                }

            }
            System.out.println("请输入三角形三条边：");
            for (int i = 0; i < chang.length; i++) {
                chang[i] = sc.nextDouble();
            }
            n++;
            Arrays.sort(chang); //从小到大排序
            if(chang[0] + chang[1] > chang[2]){

                if(chang[0] == chang[1] && chang[1]== chang[2]){
                    System.out.println("等边三角形");
                }else if(chang[2] == chang[1] || chang[2] == chang[0] || chang[1] == chang[0]){
                    System.out.println("等腰三角形");
                }else{
                    System.out.println("一般三角形");
                }
            }else{
                System.out.println("非三角形");
            }
        }

    }
}
